<!-- eslint-disable vue/multi-word-component-names -->
<template>
  <div class="box">
    <table>
        <tr style="background: #188d9f; border-bottom: 1px solid #a78d41; color: #00183e; font-weight: bold; color: pink; height: 40px; font-size: 16px">
          <th>报警日期</th>
          <th>报警时间</th>
          <th>故障内容</th>
          <th>报警状态</th>
          <th>备注</th>
        </tr>
        <tr v-for="(item, index) in data" :key="index" style="border-bottom: 1px dashed #a78d41; color: pink; height: 38px;">
          <th>{{ item.name }}</th>
          <th>{{ item.status }}</th>
          <th>{{ item.keep }}</th>
          <th>{{ item.wash }}</th>
          <th>{{ item.give }}</th>
        </tr>
      </table>
  </div>
</template>

<script lang="ts" setup>
const data = [
    {
      name:'2024/06/24',
      status:"18:00",
      keep:'温度异常',
      wash:'已消除',
      give:''
    },
  ]

</script>

<style scoped>
.box {
      width: 90%;
      width: 100%;
  }
  
  .top {
      width: 100%;
      text-align: center;
      font-size: 32px;
      font-weight: bold;
      color: #2af7f6;
      padding-top: 1vh;
  }
  
  .box table {
    width: 90%;
    /* height: 16vh; */
    margin-left: 1vw;
    margin-top: 1vh;
    text-align: center;
    border-collapse: collapse;
    font-size: 14px;
    border: none;
  }

</style>